git and GitHub

Acknowledgements

Parts of this presentation are based on these slides by Dr. Mine Çetinkaya-Rundel.

What is git?

Git logo

  • Git is a version control system – like “Track Changes” features from Microsoft Word, on steroids
  • It’s not the only version control system, but it’s a very popular one

Versioning

Versioning

with human readable messages

How does a git worflow look like in your local computer?

How to install git?

What is GitHub?

GitHub logo

  • GitHub is the home for your Git-based projects on the internet – like DropBox but much, much better

  • We will use GitHub as a platform for web hosting and collaboration (and as our course management system!)

How to connect your local git with GitHub?

Git and GitHub tips

  • There are many git commands, and very few people know them all.

  • 99% of the time you will use git to add, commit, push, and pull.

  • We will be doing Git things and interfacing with GitHub through RStudio, but if you google for help you might come across methods for doing these things in the command line – skip that and move on to the next resource unless you feel comfortable trying it out.

Git and GitHub tips

  • There is a great resource for working with git and R: happygitwithr.com.

  • We’ll make extensive use of this resource, please get acquainted.